/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.library.entityDAO;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Lattis
 */
public interface DAO<T> {

    public List<T> findAll();

    public T findById(int id);

    public boolean insert(T entity);

    public boolean delete(T entity);

    public boolean update(T entity);

    void close(ResultSet rs, PreparedStatement pstm);

}
